package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author 2023
 */

@AllArgsConstructor
public enum UserSourceEnum implements IEnum<Integer>
{
    /**
     * APP
     */
    APP(1, "APP"),
    /**
     * 小程序
     */
    APPLET(2, "小程序"),
    /**
     * 商店内部程序
     */
    MERCHANT(3, "商店内部程序");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    @Override
    public Integer getValue()
    {
        return code;
    }
}
